﻿using Unity.Entities;
using UnityEngine;

public class EventTriggerAuthoring : MonoBehaviour
{
    public class Baker : Baker<EventTriggerAuthoring>
    {
        public override void Bake(EventTriggerAuthoring authoring)
        {
            var entity = GetEntity(TransformUsageFlags.None);
            AddComponent<EventTriggerTag>(entity);
            AddBuffer<EnemyDieAction>(entity);
            AddComponent<CurseKillAction>(entity);

            SetComponentEnabled<CurseKillAction>(entity, false);
        }
    }
}